// @ts-ignore

 
import { api } from '@/utils/api';

/** 新增安全-特种设备管理表数据 POST /safeEquipmentManagement/add */
export async function safeEquipmentManagementAdd(
  body: BIZAPI.SafeEquipmentManagementCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function safeEquipmentManagementAdd(
  body: BIZAPI.SafeEquipmentManagementCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function safeEquipmentManagementAdd(
  body: BIZAPI.SafeEquipmentManagementCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function safeEquipmentManagementAdd(
  body: BIZAPI.SafeEquipmentManagementCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/safeEquipmentManagement/add`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/safeEquipmentManagement/add`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 删除安全-特种设备管理表数据 POST /safeEquipmentManagement/delete */
export async function safeEquipmentManagementDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function safeEquipmentManagementDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function safeEquipmentManagementDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function safeEquipmentManagementDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/safeEquipmentManagement/delete`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/safeEquipmentManagement/delete`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取安全-特种设备管理表数据 POST /safeEquipmentManagement/get */
export async function safeEquipmentManagementGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeEquipmentManagementEntity>;

export async function safeEquipmentManagementGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeEquipmentManagementEntity>>;

export async function safeEquipmentManagementGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeEquipmentManagementEntity>;

export async function safeEquipmentManagementGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeEquipmentManagementEntity>(`/app/safeEquipmentManagement/get`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultSafeEquipmentManagementEntity>(`/app/safeEquipmentManagement/get`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取安全-特种设备管理表VO数据 POST /safeEquipmentManagement/getVo */
export async function safeEquipmentManagementGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeEquipmentManagementResp>;

export async function safeEquipmentManagementGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeEquipmentManagementResp>>;

export async function safeEquipmentManagementGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeEquipmentManagementResp>;

export async function safeEquipmentManagementGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeEquipmentManagementResp>(`/app/safeEquipmentManagement/getVo`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultSafeEquipmentManagementResp>(`/app/safeEquipmentManagement/getVo`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取安全-特种设备管理表分页数据 POST /safeEquipmentManagement/page */
export async function safeEquipmentManagementPage(
  body: BIZAPI.SafeEquipmentManagementQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeEquipmentManagementEntity>;

export async function safeEquipmentManagementPage(
  body: BIZAPI.SafeEquipmentManagementQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeEquipmentManagementEntity>>;

export async function safeEquipmentManagementPage(
  body: BIZAPI.SafeEquipmentManagementQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeEquipmentManagementEntity>;

export async function safeEquipmentManagementPage(
  body: BIZAPI.SafeEquipmentManagementQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeEquipmentManagementEntity>(
      `/app/safeEquipmentManagement/page`,
      {
        method: 'POST',
        headers: {
          'Content-Type': 'application/json'
        },
        data: body,
        ...(options || {}),
        tupleResponse: true
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeEquipmentManagementEntity>(
    `/app/safeEquipmentManagement/page`,
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {})
    }
  );
}

/** 更新安全-特种设备管理表数据 POST /safeEquipmentManagement/update */
export async function safeEquipmentManagementUpdate(
  body: BIZAPI.SafeEquipmentManagementUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function safeEquipmentManagementUpdate(
  body: BIZAPI.SafeEquipmentManagementUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function safeEquipmentManagementUpdate(
  body: BIZAPI.SafeEquipmentManagementUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function safeEquipmentManagementUpdate(
  body: BIZAPI.SafeEquipmentManagementUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/safeEquipmentManagement/update`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/safeEquipmentManagement/update`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取安全-特种设备管理表VO分页数据 POST /safeEquipmentManagement/voPage */
export async function safeEquipmentManagementVoPage(
  body: BIZAPI.SafeEquipmentManagementQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeEquipmentManagementResp>;

export async function safeEquipmentManagementVoPage(
  body: BIZAPI.SafeEquipmentManagementQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeEquipmentManagementResp>>;

export async function safeEquipmentManagementVoPage(
  body: BIZAPI.SafeEquipmentManagementQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeEquipmentManagementResp>;

export async function safeEquipmentManagementVoPage(
  body: BIZAPI.SafeEquipmentManagementQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeEquipmentManagementResp>(
      `/app/safeEquipmentManagement/voPage`,
      {
        method: 'POST',
        headers: {
          'Content-Type': 'application/json'
        },
        data: body,
        ...(options || {}),
        tupleResponse: true
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeEquipmentManagementResp>(
    `/app/safeEquipmentManagement/voPage`,
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {})
    }
  );
}
